package com.xtoneict.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xtoneict.auth.entity.YearMonthTab;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hx
 * @since 2024-06-21
 */
@Mapper
public interface YearMonthTabMapper extends BaseMapper<YearMonthTab> {

    @Select("select * from year_month_tab where this_year = #{thisYear} and this_month = #{thisMonth}")
    YearMonthTab getByYearAndMonth(@Param("thisYear")Integer thisYear, @Param("thisMonth")Integer thisMonth);
}
